package com.dhcc.bpm.modules.resource.config;

import com.dhcc.bpm.modules.resource.builder.OssBuilder;
import com.dhcc.bpm.modules.resource.mapper.OssMapper;
import lombok.AllArgsConstructor;
import org.springblade.core.oss.props.OssProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @ClassName BladeOssConfiguration.class
 * @Description  Oss配置类
 * @Author xiaFaYu
 * @Date 2020-02-03 14:16
 * @Version V1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 */
@Configuration
@AllArgsConstructor
public class BladeOssConfiguration {

	private OssProperties ossProperties;

	private OssMapper ossMapper;

	@Bean
	public OssBuilder ossBuilder() {
		return new OssBuilder(ossProperties, ossMapper);
	}

}
